package com.aaa.controller.tables;

import com.aaa.dao.FCollectMapper;
import com.aaa.entity.FCollect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("fCollect")
public class FCollectController {
    @Resource
    FCollectMapper fCollectMapper;
    @RequestMapping("select")
    public Object select(){
        return fCollectMapper.selectList(null);
    }
    @RequestMapping("insert")
    public Integer insert(FCollect menu){
        return fCollectMapper.insert(menu);
    }
    @RequestMapping("update")
    public Integer update(FCollect menu){
        return fCollectMapper.updateById(menu);
    }
    @RequestMapping("delete")
    public Integer delete(Integer id){
        return fCollectMapper.deleteById(id);
    }
}
